<?php 
/**
 * Класс, который реализовует базовые настройки PHP-Ext
 *
 */

class FRM_View_Ext_Form_Template_Search extends FRM_View_Ext_Form_Template_Abstract
{

	protected  function init(){
		
		$panel = new PhpExt_Panel();
		// using ColumnLayout
		$panel->setWidth(700)
			  ->setBorder(false)
		      ->setLayout(new PhpExt_Layout_ColumnLayout());

		$this->zones[0] = new PhpExt_Panel();
		$this->zones[0]->setBorder(false)
		             ->setLayout(new PhpExt_Layout_FormLayout());
		
		             
		$panel1 = new PhpExt_Panel();
		$panel1->setBorder(false)
		             ->setLayout(new PhpExt_Layout_ColumnLayout());
		             
		$this->zones[2] = new PhpExt_Panel();
		$this->zones[2]->setBorder(false)
					 ->setLabelWidth(100)
		             ->setLayout(new PhpExt_Layout_FormLayout());

		$this->zones[3] = new PhpExt_Panel();
		$this->zones[3]->setBorder(false)
					 ->setLabelWidth(70)
		             ->setLayout(new PhpExt_Layout_FormLayout());
	     
		$this->zones[4] = new PhpExt_Panel();
		$this->zones[4]->setBorder(false)
					 ->setLabelWidth(1)
		             ->setLayout(new PhpExt_Layout_FormLayout());
		 
		$this->zones[5] = new PhpExt_Panel();
		$this->zones[5]->setBorder(false)
					 ->setLabelWidth(18)
		             ->setLayout(new PhpExt_Layout_FormLayout());
		             
		$this->zones[6] = new PhpExt_Panel();
		$this->zones[6]->setBorder(false);
		
		$pricePanel = new PhpExt_Panel();
		$pricePanel ->setBorder(false)
		             ->setLayout(new PhpExt_Layout_ColumnLayout());

		$panel1->addItem($this->zones[4],new PhpExt_Layout_ColumnLayoutData(1));
		$panel1->addItem($pricePanel,new PhpExt_Layout_ColumnLayoutData(1));   
		$pricePanel ->addItem($this->zones[5], new PhpExt_Layout_ColumnLayoutData(0.60));
		$pricePanel ->addItem($this->zones[6], new PhpExt_Layout_ColumnLayoutData(0.4));
		        
		$panel->addItem($this->zones[0], new PhpExt_Layout_ColumnLayoutData(0.24)); 
		$panel->addItem($panel1, new PhpExt_Layout_ColumnLayoutData(0.24)); 
		$panel->addItem($this->zones[2], new PhpExt_Layout_ColumnLayoutData(0.3));
		$panel->addItem($this->zones[3], new PhpExt_Layout_ColumnLayoutData(0.18)); 

		$this->form->addItem($panel);
		
	}
	
}